settings test: Print expected and seen values
authorTimm Bäder <mail@baedert.org>
Mon, 13 Dec 2021 14:26:00 +0000 (15:26 +0100)
committerTimm Bäder <mail@baedert.org>
Thu, 16 Dec 2021 10:06:50 +0000 (11:06 +0100)
That test breaks locally (and in CI it seems?), so at least print the
values we see.

testsuite/tools/settings.in

index ea7ae6a67bfb3f0f18007b1f758617de6e8bb422..3c5ce690168a59d301503eaadebff90aed2efc13 100755 (executable)
@@ -10,8 +10,11 @@ echo "1..1"
 name=gtk-query-settings
 result=$TEST_RESULT_DIR/$name.out
 $GTK_QUERY_SETTINGS 2>/dev/null >$result
-if [ $(wc -l $result | cut -f1 -d' ') -eq 50 ]; then
-  echo "ok 1 $name"
+EXPECTED=50
+SEEN=$(wc -l $result | cut -f1 -d' ')
+
+if [ $SEEN -eq $EXPECTED ]; then
+  echo "ok 1 $name."
 else
-  echo "not ok 1 $name"
+  echo "not ok 1 $name. Expected: $EXPECTED. Seen: $SEEN"
 fi